<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Pick Anime Cool | Better Bangumi Search</title>
    <meta name="description"
        content="Search and discover anime with advanced filters for ratings, air dates, and rankings.">
    <link rel="icon" href="favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="src/styles/main.css">
    <link rel="stylesheet"
        href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0">
</head>

<body>
    <div class="container">
        <h1>
            <!-- <span class="material-symbols-rounded" aria-hidden="true">check_circle</span> -->
            <img src="favicon.ico" alt="pick-anime-cool" class="inline-icon">
            Pick Anime Cool
            <a href="https://github.com/ezer015/pick-anime-cool" class="github-link" aria-label="View source on GitHub">
                <svg width="32" height="32" viewBox="0 0 24 24" fill="currentColor">
                    <path
                        d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />
                </svg>
            </a>
        </h1>
        <div class="search-container">
            <div class="search-group">
                <div class="tag-container" id="tagContainer" role="list" aria-label="Selected tags"></div>
                <div class="input-group">
                    <div class="type-select-wrapper">
                        <select id="contentType" class="type-select" aria-label="Content type">
                            <option value="2" data-icon="animation" selected>animation</option>
                            <option value="1" data-icon="book">book</option>
                            <option value="3" data-icon="music_note">music_note</option>
                            <option value="4" data-icon="videogame_asset">videogame_asset</option>
                            <option value="6" data-icon="movie">movie</option>
                        </select>
                        <div class="type-select-options">
                            <div class="type-select-option selected" data-value="2">animation</div>
                            <div class="type-select-option" data-value="1">book</div>
                            <div class="type-select-option" data-value="3">music_note</div>
                            <div class="type-select-option" data-value="4">videogame_asset</div>
                            <div class="type-select-option" data-value="6">movie</div>
                        </div>
                        <span class="material-symbols-rounded type-select-icon" aria-hidden="true">movie</span>
                    </div>
                    <div class="input-wrapper">
                        <span class="material-symbols-rounded" aria-hidden="true">search</span>
                        <input type="text" id="keyword" placeholder="Search • Enter to add #tag" class="search-input"
                            aria-label="Search content">
                    </div>
                </div>
            </div>
            <div class="filter-group">
                <div class="sort-filter">
                    <label>Sort by</label>
                    <div class="segmented-buttons" role="radiogroup" aria-label="Sort options">
                        <button class="segmented-button active" data-sort="match" aria-pressed="true">
                            <span class="material-symbols-rounded">match_word</span>Match
                        </button>
                        <button class="segmented-button" data-sort="heat" aria-pressed="false">
                            <span class="material-symbols-rounded">local_fire_department</span>Heat
                        </button>
                        <button class="segmented-button" data-sort="rank" aria-pressed="false">
                            <span class="material-symbols-rounded">sort</span>Rank
                        </button>
                    </div>
                </div>
                <div class="rating-filter">
                    <label for="minRating">Rating</label>
                    <div class="filter-inputs">
                        <input type="number" id="minRating" placeholder="Min" min="0" max="10" step="0.1"
                            aria-label="Minimum rating">
                        <span class="separator">-</span>
                        <input type="number" id="maxRating" placeholder="Max" min="0" max="10" step="0.1"
                            aria-label="Maximum rating">
                    </div>
                </div>
                <div class="date-filter">
                    <label for="startDate">Air Date</label>
                    <div class="filter-inputs">
                        <input type="date" id="startDate" aria-label="Start date">
                        <span class="separator">-</span>
                        <input type="date" id="endDate" aria-label="End date">
                    </div>
                </div>
                <div class="rank-filter">
                    <label for="minRank">Rank</label>
                    <div class="filter-inputs">
                        <input type="number" id="minRank" placeholder="Min" aria-label="Minimum rank">
                        <span class="separator">-</span>
                        <input type="number" id="maxRank" placeholder="Max" aria-label="Maximum rank">
                    </div>
                </div>
            </div>
            <button id="searchBtn" class="search-button">
                <span class="material-symbols-rounded" aria-hidden="true">search</span>
                Pick
            </button>
        </div>
        <div id="results" class="results-container" role="region" aria-live="polite"></div>
    </div>
    <script src="src/js/main.js"></script>

    <!-- Theme Toggle Button -->
    <button class="float-btn float-btn-setting" id="themeToggle" aria-label="Toggle dark mode">
        <span class="material-symbols-rounded">dark_mode</span>
    </button>

    <!-- Navigation Buttons -->
    <button class="float-btn float-btn-top" onclick="window.scrollTo({top: 0, behavior: 'smooth'})"
        aria-label="Scroll to top">
        <span class="material-symbols-rounded">expand_less</span>
    </button>
    <button class="float-btn float-btn-bottom"
        onclick="window.scrollTo({top: document.documentElement.scrollHeight, behavior: 'smooth'})"
        aria-label="Scroll to bottom">
        <span class="material-symbols-rounded">expand_more</span>
    </button>
</body>

</html>
